<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
  <head>
    <meta name="copyright" content=
    "Copyright (c) IBM Corporation and others 2006, 2011. This page is made available under license. For full details see the LEGAL in the documentation book that contains this page." />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="Content-Style-Type" content="text/css" />
    <link rel="stylesheet" href="../book.css" charset="ISO-8859-1" type="text/css" />
    <script language="JavaScript" src="PLUGINS_ROOT/org.eclipse.help/livehelp.js" type=
    "text/javascript">
</script>
    <title>
      Presentation options for Java views
    </title>

  </head>
  <body>
    <h1>
      Presentation Options for Java Views
    </h1>
    <h2>
      Showing and Hiding Method Return Types
    </h2>
    <p>
      Several Java views (e.g. <strong>Outline</strong>, <strong>Members</strong>) present methods
      and can also show their return types and type parameters.
    </p>

    <p>
      To show method return types in Java views select or clear the <span class="control">Show
      method return types</span> or <span class="control">Show method type parameters</span>
      checkbox in the <a class="command-link" href=
      'javascript:executeCommand("org.eclipse.ui.window.preferences(preferencePageId=org.eclipse.jdt.ui.preferences.AppearancePreferencePage)")'>
      <img src="PLUGINS_ROOT/org.eclipse.help/command_link.svg" alt=
      "Opens the Appearance preference page" /> <span class="control">Java &gt;
      Appearance</span></a> preference page.
    </p>

    <h2>
      Showing Full or Compressed Package Names
    </h2>
    <p>
      The <strong>Package Explorer</strong> and <strong>Packages</strong> views can show full or
      compressed package names.
    </p>
    <p>

      To show full package names:
    </p>
    <ul>
      <li>Clear the <span class="control">Compress all package name segments, except the final
      segment</span> checkbox on the <a class="command-link" href=
      'javascript:executeCommand("org.eclipse.ui.window.preferences(preferencePageId=org.eclipse.jdt.ui.preferences.AppearancePreferencePage)")'>
        <img src="PLUGINS_ROOT/org.eclipse.help/command_link.svg" alt=
        "Opens the Appearance preference page" /> <span class="control">Java &gt;
        Appearance</span></a> preference page.
      </li>

    </ul>To show compressed package names:
    <ul>
      <li>
        <p>
          Select the <span class="control">Compress all package name segments, except the final
          segment</span> checkbox on the <a class="command-link" href=
          'javascript:executeCommand("org.eclipse.ui.window.preferences(preferencePageId=org.eclipse.jdt.ui.preferences.AppearancePreferencePage)")'>
          <img src="PLUGINS_ROOT/org.eclipse.help/command_link.svg" alt=
          "Opens the Appearance preference page" /> <span class="control">Java &gt;

          Appearance</span></a> preference page.
        </p>
        <p>
          Compression patterns control how many characters of each package name segment are
          displayed. The last segment of a package name is always displayed.
        </p>
        <p>
          A compression pattern of "." indicates that only the separating periods are shown to
          represent a segment. A digit (n) in a compression pattern represents the first n
          characters of a package name segment. Examples are the best way to understand compression
          patterns. The package <span class="control">org.eclipse.jdt</span> would be displayed as
          follows using the example compression patterns:
        </p>

        <p>
          <span class="control">.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span> ..jdt
        </p>
        <p>
          <span class="control">0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span> jdt
        </p>
        <p>
          <span class="control">2~&nbsp;&nbsp;&nbsp;&nbsp;</span> or~.ec~.jdt
        </p>

        <p>
          <span class="control">3~&nbsp;&nbsp;&nbsp;&nbsp;</span> org.ecl~.jdt
        </p>
      </li>
    </ul><br />
      <h3 class="related">Related references</h3>
      <a href="../reference/preferences/java/ref-preferences-appearance.htm">Java appearance
      preference page</a><br />
      <a href="../reference/views/ref-view-package-explorer.htm">Package Explorer</a><br />
  </body>
</html>
